package com.liveneo.adapter.base.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.liveneo.adapter.base.entity.PrpmLossSurvey;
import com.liveneo.adapter.base.entity.PrpmLossSurveyExample;
import com.liveneo.adapter.base.support.BaseMapper;
import com.liveneo.adapter.mobile.model.dto.SurveyComInfoDto;
import com.liveneo.adapter.mobile.model.dto.SurveyGaugeInfoDto;
import com.liveneo.adapter.mobile.model.dto.SurveyIdeaInfoDto;
import com.liveneo.adapter.mobile.model.dto.SurveySiteInfoDto;

/**
 * 查勘信息 映射器的接口
 * 依赖配置文件：PrpmLossSurveyMapper.xml
 * 
 * @author fucy
 * @since 2016-06-05
 */
public interface PrpmLossSurveyMapper extends BaseMapper<PrpmLossSurvey> {
    int countByExample(PrpmLossSurveyExample example);

    int deleteByExample(PrpmLossSurveyExample example);

    List<PrpmLossSurvey> selectByExample(PrpmLossSurveyExample example);

    int updateByExampleSelective(@Param("record") PrpmLossSurvey record, @Param("example") PrpmLossSurveyExample example);

    int updateByExample(@Param("record") PrpmLossSurvey record, @Param("example") PrpmLossSurveyExample example);

    SurveyComInfoDto selectComInfoByUuid(String lossUuid);

    SurveySiteInfoDto selectSiteInfoByUuid(String lossUuid);

    SurveyIdeaInfoDto selectIdeaInfoByUuid(String lossUuid);

    SurveyGaugeInfoDto selectGaugeInfoByUuid(String lossUuid);

    PrpmLossSurvey selectByLossUuid(String lossUuid);
}